<template>
    <div class="container">
        <div class="row justify-content-center p-3">
            <div class="form-group mb-1">
                <input type="text" class="form-text" name="name" ref="name">
            </div>
            <button class="btn btn-danger" @click="rush">Rush</button>
        </div>
    </div>
</template>

<script>
export default {
    methods: {
        rush(event) {
            axios.post('/rush', {name: this.$refs.name.value}).then(res => {

            }).catch(e => {
                console.log(e)
            });
        }
    }
}
</script>
